package com.eg.egent.example;

import com.alibaba.fastjson.JSONObject;
import com.eg.egent.example.common.Constants;
import com.eg.egent.example.common.ApiUtil;

/**
 * @Description: 单门点遥控器授权示例
 * @author liangjiange
 * @date 2016年10月11日 上午11:42:19
 */
public class PopedomODRCSetExample {

	private static Integer encrypt = Constants.ENCRYPT_NO;

	private static Integer signMethod = Constants.SIGN_METHOD_HMAC;

	private static String taskDesc = "单门点遥控器授权";

	public static void main(String[] args) {

		JSONObject mainContent = new JSONObject();
		mainContent.put("method", "popedom.odrc.set");
		mainContent.put("main_control_mac", "00:15:09:09:46:32");
		mainContent.put("comm_code", 16000100);
		mainContent.put("time_type", 2);
		mainContent.put("remote_control_id", 148739);

		ApiUtil.excute(encrypt, signMethod, taskDesc, mainContent);

	}

}
